{"ast":null,"code":"var _jsxFileName = \"/data/messenger.client/src/components/Button/index.tsx\";\nimport React from \"react\";\nimport { Button as BaseButton } from '@mui/material';\nimport styles from \"./Button.module.scss\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst Button = _ref => {\n  let {\n    text,\n    fullWidth = true,\n    callback,\n    customClassName\n  } = _ref;\n  return /*#__PURE__*/_jsxDEV(BaseButton, {\n    type: \"submit\",\n    variant: \"contained\",\n    fullWidth: fullWidth,\n    onClick: () => callback && callback,\n    disableElevation: true,\n    className: customClassName ? customClassName : styles.btn,\n    children: text\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 8,\n    columnNumber: 9\n  }, this);\n};\n_c = Button;\nexport default Button;\nvar _c;\n$RefreshReg$(_c, \"Button\");","map":{"version":3,"names":["React","Button","BaseButton","styles","text","fullWidth","callback","customClassName","btn"],"sources":["/data/messenger.client/src/components/Button/index.tsx"],"sourcesContent":["import React from \"react\";\nimport {ButtonProps} from \"../../models/props/ButtonProps\";\nimport {Button as BaseButton} from '@mui/material';\nimport styles from \"./Button.module.scss\";\n\nconst Button: React.FC<ButtonProps> = ({text, fullWidth = true, callback, customClassName}) => {\n    return (\n        <BaseButton\n            type=\"submit\"\n            variant=\"contained\"\n            fullWidth={fullWidth}\n            onClick={() => callback && callback}\n            disableElevation={true}\n            className={(customClassName)? customClassName: styles.btn}\n        >\n            {text}\n        </BaseButton>\n    );\n}\n\nexport default Button;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAAQC,MAAM,IAAIC,UAAU,QAAO,eAAe;AAClD,OAAOC,MAAM,MAAM,sBAAsB;AAAC;AAE1C,MAAMF,MAA6B,GAAG,QAAyD;EAAA,IAAxD;IAACG,IAAI;IAAEC,SAAS,GAAG,IAAI;IAAEC,QAAQ;IAAEC;EAAe,CAAC;EACtF,oBACI,QAAC,UAAU;IACP,IAAI,EAAC,QAAQ;IACb,OAAO,EAAC,WAAW;IACnB,SAAS,EAAEF,SAAU;IACrB,OAAO,EAAE,MAAMC,QAAQ,IAAIA,QAAS;IACpC,gBAAgB,EAAE,IAAK;IACvB,SAAS,EAAGC,eAAe,GAAGA,eAAe,GAAEJ,MAAM,CAACK,GAAI;IAAA,UAEzDJ;EAAI;IAAA;IAAA;IAAA;EAAA,QACI;AAErB,CAAC;AAAA,KAbKH,MAA6B;AAenC,eAAeA,MAAM;AAAC;AAAA"},"metadata":{},"sourceType":"module"}